package strategy;

public class Client {
    public static void main(String[] args) {
        double price = 15;
        double num = 10;

        // CashStrategy cashStrategy = new CashNormal();
        // CashStrategy cashStrategy = new CashRebate(0.8);
        CashStrategy cashStrategy = new CashReturn(300, 20);
        CashContext cashContext = new CashContext(cashStrategy);
        System.out.println(cashContext.calculateResult(price * num));
    }
}
